/*  -*- mode: c; coding: utf-8; c-file-style: "stroustrup"; -*-

    Copyright 2008 Asier Aguirre <asier.aguirre@gmail.com>
    This file is part of Intromit.

    Intromit is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Intromit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Intromit.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef PYEMBED_INTROMIT_H
#define PYEMBED_INTROMIT_H
#ifdef __cplusplus
extern "C" {
#endif

// object identifier
typedef void *pyembed_id;

// initialization and finalization of API
pyembed_id pyembed_init();
pyembed_id pyembed_init_args(int narg, char **arg);
void pyembed_finish(pyembed_id id);

// status
int pyembed_get_quiet(pyembed_id id);

// python command insertion
int pyembed_command_line_init(pyembed_id id, const char *prompt, const char *history_file);
int pyembed_command_line_refresh(pyembed_id id);
int pyembed_command_line_finish(pyembed_id id);


#ifdef __cplusplus
}
#endif 
#endif

/* Offline metadata attributes:

   @metadata_attrs(
	pyembed_id,
	pyembed_init,
	pyembed_init_args,
	pyembed_finish,
	pyembed_get_quiet,
	pyembed_command_line_init,
	pyembed_command_line_refresh,
	pyembed_command_line_finish:
					~select
   )
*/
